<MDXHeader title="Bar List" description="Horizontal bars with a customizable label inside." />

<ComponentPreview name="bar-list-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add bar-list
```

</TabsContent>

<TabsContent value="manual">

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="bar-list" />

</TabsContent>

</Tabs>

## Usage

```tsx
import { BarList } from "~/components/ui/bar-list"
```

```tsx
const data = [
  { name: "Instagram", value: 324 },
  { name: "X", value: 174 },
  { name: "Youtube", value: 1237 }
]

<BarList data={data} />
```
